package com.interview02;

import java.io.PrintWriter;
import java.net.Socket;

/**
 * Copyright (C), 2018-2020
 * FileName: MyClient
 * Author:   kongfanyu
 * Date:     2020/12/16 11:42
 */
public class MyClient {
    public static void main(String[] args) throws Exception {
        Socket socket = new Socket("localhost",8080);
        PrintWriter printWriter = new PrintWriter(socket.getOutputStream());
        printWriter.println("兄弟们，该吃饭了.....");
        printWriter.close();
        socket.close();
    }
}
